﻿using System;
using Dos.ORM;

/// <summary>
/// 实体类temple_rallyinfo。(属性说明自动提取数据库字段的描述信息)
/// </summary>
[Table("temple_rallyinfo")]
[Serializable]
public partial class temple_rallyinfo : Entity
{
    #region Model
    private int _ID;
    private int _ParentID;
    private string _Type;
    private string _Names;
    private decimal? _Price;
    private string _OpenID;
    private int _OrderID;
    private DateTime _AddTime;
    private bool _IsDel;
    private int _SortID;

    /// <summary>
    /// 
    /// </summary>
    [Field("ID")]
    public int ID
    {
        get { return _ID; }
        set
        {
            this.OnPropertyValueChange("ID");
            this._ID = value;
        }
    }
    /// <summary>
    /// 
    /// </summary>
    [Field("ParentID")]
    public int ParentID
    {
        get { return _ParentID; }
        set
        {
            this.OnPropertyValueChange("ParentID");
            this._ParentID = value;
        }
    }
    /// <summary>
    /// 
    /// </summary>
    [Field("Type")]
    public string Type
    {
        get { return _Type; }
        set
        {
            this.OnPropertyValueChange("Type");
            this._Type = value;
        }
    }
    /// <summary>
    /// 
    /// </summary>
    [Field("Names")]
    public string Names
    {
        get { return _Names; }
        set
        {
            this.OnPropertyValueChange("Names");
            this._Names = value;
        }
    }
    /// <summary>
    /// 
    /// </summary>
    [Field("Price")]
    public decimal? Price
    {
        get { return _Price; }
        set
        {
            this.OnPropertyValueChange("Price");
            this._Price = value;
        }
    }
    /// <summary>
    /// 
    /// </summary>
    [Field("OpenID")]
    public string OpenID
    {
        get { return _OpenID; }
        set
        {
            this.OnPropertyValueChange("OpenID");
            this._OpenID = value;
        }
    }
    /// <summary>
    /// 
    /// </summary>
    [Field("OrderID")]
    public int OrderID
    {
        get { return _OrderID; }
        set
        {
            this.OnPropertyValueChange("OrderID");
            this._OrderID = value;
        }
    }
    /// <summary>
    /// 
    /// </summary>
    [Field("AddTime")]
    public DateTime AddTime
    {
        get { return _AddTime; }
        set
        {
            this.OnPropertyValueChange("AddTime");
            this._AddTime = value;
        }
    }
    /// <summary>
    /// 
    /// </summary>
    [Field("IsDel")]
    public bool IsDel
    {
        get { return _IsDel; }
        set
        {
            this.OnPropertyValueChange("IsDel");
            this._IsDel = value;
        }
    }
    /// <summary>
    /// 
    /// </summary>
    [Field("SortID")]
    public int SortID
    {
        get { return _SortID; }
        set
        {
            this.OnPropertyValueChange("SortID");
            this._SortID = value;
        }
    }
    #endregion

    #region Method
    /// <summary>
    /// 获取实体中的主键列
    /// </summary>
    public override Field[] GetPrimaryKeyFields()
    {
        return new Field[] {
                _.ID,
            };
    }
    /// <summary>
    /// 获取列信息
    /// </summary>
    public override Field[] GetFields()
    {
        return new Field[] {
                _.ID,
                _.ParentID,
                _.Type,
                _.Names,
                _.Price,
                _.OpenID,
                _.OrderID,
                _.AddTime,
                _.IsDel,
                _.SortID,
            };
    }
    /// <summary>
    /// 获取值信息
    /// </summary>
    public override object[] GetValues()
    {
        return new object[] {
                this._ID,
                this._ParentID,
                this._Type,
                this._Names,
                this._Price,
                this._OpenID,
                this._OrderID,
                this._AddTime,
                this._IsDel,
                this._SortID,
            };
    }
    /// <summary>
    /// 是否是v1.10.5.6及以上版本实体。
    /// </summary>
    /// <returns></returns>
    public override bool V1_10_5_6_Plus()
    {
        return true;
    }
    #endregion

    #region _Field
    /// <summary>
    /// 字段信息
    /// </summary>
    public class _
    {
        /// <summary>
        /// * 
        /// </summary>
        public readonly static Field All = new Field("*", "temple_rallyinfo");
        /// <summary>
        /// 
        /// </summary>
        public readonly static Field ID = new Field("ID", "temple_rallyinfo", "");
        /// <summary>
        /// 
        /// </summary>
        public readonly static Field ParentID = new Field("ParentID", "temple_rallyinfo", "");
        /// <summary>
        /// 
        /// </summary>
        public readonly static Field Type = new Field("Type", "temple_rallyinfo", "");
        /// <summary>
        /// 
        /// </summary>
        public readonly static Field Names = new Field("Names", "temple_rallyinfo", "");
        /// <summary>
        /// 
        /// </summary>
        public readonly static Field Price = new Field("Price", "temple_rallyinfo", "");
        /// <summary>
        /// 
        /// </summary>
        public readonly static Field OpenID = new Field("OpenID", "temple_rallyinfo", "");
        /// <summary>
        /// 
        /// </summary>
        public readonly static Field OrderID = new Field("OrderID", "temple_rallyinfo", "");
        /// <summary>
        /// 
        /// </summary>
        public readonly static Field AddTime = new Field("AddTime", "temple_rallyinfo", "");
        /// <summary>
        /// 
        /// </summary>
        public readonly static Field IsDel = new Field("IsDel", "temple_rallyinfo", "");
        /// <summary>
        /// 
        /// </summary>
        public readonly static Field SortID = new Field("SortID", "temple_rallyinfo", "");
    }
    #endregion
}